#include "../Headers/day07_test.h"   
  
base::base(int val){
    this->val = val;
}
base::~base(){
cout<<val<< "base"<<endl;
}
A::A(int val,int val2):base(val2){
    this->val = val;
}
A::~A(){cout<<val<< "A"<<endl;}

B::B(int val,int val2):base(val2){
    this->val = val;
}
B::~B(){ cout<<val<< "B"<<endl;}

D::D(int val2,int val3,int val4,int val5):
base(val2), A(val2,val3),B(val4,val5){
    
}
D::~D(){
    cout<< "D"<<endl;
}